#ifndef __INET_ADDRESS_H_
#define __INET_ADDRESS_H_

#include <arpa/inet.h>
#include <string>
using std::string;

class InetAddress{
public:
    InetAddress(const string &ip, string port);
    InetAddress(const struct sockaddr_in &addr);
    ~InetAddress();
    string ip() const;
    unsigned short port() const;
    const struct sockaddr_in *getInetAddrPtr() const;

private:
    struct sockaddr_in _addr;

};

#endif // !__CLIENT_SERVER_H_
